package com.achievement.service;


import com.achievement.domain.dto.honor.HonorApplyBookMemberDTO;
import com.achievement.domain.entity.HonorApplyBookMemberEntity;
import com.achievement.domain.vo.honor.HonorApplyBookMemberVO;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

public interface IHonorApplyBookMemberService extends IService<HonorApplyBookMemberEntity> {
    List<HonorApplyBookMemberEntity> getListByConditions(HonorApplyBookMemberDTO honorApplyBookMemberDTO);
    HonorApplyBookMemberVO getInfoById(String id);


    boolean add(HonorApplyBookMemberDTO dto);

    boolean update(HonorApplyBookMemberDTO dto);

    /**
     * 根据申请计划ID查询所有完成人
     * @param applyBookId
     * @return
     */
    List<HonorApplyBookMemberVO> honorApplyBookMemberByApplyBookId(String applyBookId);
    /**
     * 批量插入
     * @param
     * @return
     */
    boolean bitchAdd(List<HonorApplyBookMemberDTO> honorAuthorDTOs,String applyBookId);

    /**
     * 批量移除
     * @param
     * @return
     */
    boolean batchRemove(List<String> ids);

    /**
     * 根据honorId删除所有完成人信息
     * @param applyBookId
     * @return
     */
    int deleteHonorApplyBookMemberListByApplyBookId(String applyBookId);
}
